<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        /*var num=0;
        for (i=1;i<=100;i++){
                num+=i;
        }
        console.log(num);*/

        /*var num=0;
        for (i=1;i<=100;i++){
            if (i%2==0){
               num+=i;
            }
        }
        console.log(num);*/

        /*var num=0;
        for (i=1;i<=100;i++){
            if (i%2==1){
                num+=i;
            }
        }
        console.log(num);*/

        /*var num=0;
        for (i=1;i<=9;i++){
            for (j=1;j<=i;j++){
                num=j*i;
                document.write(j+"*"+i+"="+num);
                document.write("&nbsp;");
            }
            document.write("<br/>");
        }*/

        /*var arr=[];
        arr["name"]="张三";
        arr["age"]="18";
        arr["sex"]="男";
        for (b in arr){
            document.write(b+":"+arr[b]);
            document.write("&nbsp;")
        }*/

        var arr=[];
        var loop=0;
        var arr1=[[1,2,3],[4,5,6],[7,8,9]];
        for (i=0;i<arr1.length;i++){
            for (j=0;j<arr1.length;j++){
                arr[loop]=arr1[i][j];
                loop++
            }
        }
        console.log(arr);
    </script>
</head>
<body>

</body>
</html>